sbindir="/usr/sbin"
sysconfdir="/etc"
INSTALL=/usr/bin/install -g root -o root 

clean:
	rm -f ./nauth/data/css/*~ ./nauth/data/img/*~ ./nauth/data/js/*~ ./nauth/data/templates/*~
	rm -f ./misc/*~ ./nauth/scripts/*~ ./nauth/scripts/*.pyc *~

install:
	${INSTALL} -m 644 ./misc/nstat.conf.sample ${sysconfdir}
	${INSTALL} -m 755 ./misc/nstat-update ${sbindir}
	${INSTALL} -m 755 ./misc/nstat-provide ${sbindir}
	@echo ""
	@echo "Now you should do something like this:"
	@echo "  cp ${sysconfdir}/nstat.conf.sample ${sysconfdir}/nstat.conf"
	@echo "  nano ${sysconfdir}/nstat.conf"
	@echo "  cp ./nauth/scripts/config.py.sample ./nauth/scripts/config.py && nano ./nauth/scripts/config.py"
	@echo "  ln -s `pwd`/nauth /path/to/www/dir"
